package com.zhn.usermanager.pojo;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 部门表(Department)实体类
 *
 * @author Robot
 * @since 2021-09-01 16:22:06
 * @version 1.0
 */
@ApiModel(value = "Department",description = "部门表")
public class Department implements Serializable {
    private static final long serialVersionUID = 320830720995565102L;
    /**
    * 主键id
    */
	@ApiModelProperty(name = "id",notes = "主键id",dataType = "Integer",required = true)
    private Integer id;
    /**
    * 部门名
    */
	@ApiModelProperty(name = "name",notes = "部门名",dataType = "String",required = true)
    private String name;
    /**
    * 部门编号
    */
	@ApiModelProperty(name = "number",notes = "部门编号",dataType = "Integer",required = true)
    private Integer number;
    /**
    * 创建日期
    */
	@ApiModelProperty(name = "createtime",notes = "创建日期",dataType = "Date",required = true)
    // 接收字符串日期，转换为date对象，前端必须传递 "2020-06-20 01:01:01"  这样的格式
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    // 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime;

        
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
        
    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }
        
    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

}